home *** CD-ROM | disk | FTP | other *** search
/ MacAddict 104 / MacAddict_104_2005-04.iso / Software / Internet & Communication / WordPress 1.2.2 freeware.dmg / wordpress / wp-admin / upgrade.php < prev    next >
Encoding:
PHP Script  |  2004-05-05  |  1.8 KB  |  73 lines

  1. <?php
  2. $_wp_installing = 1;
  3. if (!file_exists('../wp-config.php')) die("There doesn't seem to be a wp-config.php file. Double check that you updated wp-config-sample.php with the proper database connection information and renamed it to wp-config.php.");
  4. require('../wp-config.php');
  5. timer_start();
  6. require('upgrade-functions.php');
  7.  
  8. $step = $_GET['step'];
  9. if (!$step) $step = 0;
  10. ?>
  11. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  12. <html xmlns="http://www.w3.org/1999/xhtml">
  13. <title>WordPress › Upgrade WordPress</title>
  14. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  15. <style media="screen" type="text/css">
  16.     body {
  17.         background-color: white;
  18.         color: black;
  19.         font-family: Georgia, "Times New Roman", Times, serif;
  20.         margin-left: 15%;
  21.         margin-right: 15%;
  22.     }
  23.     #logo {
  24.         margin: 0;
  25.         padding: 0;
  26.         background-image: url(http://wordpress.org/images/logo.png);
  27.         background-repeat: no-repeat;
  28.         height: 60px;
  29.         border-bottom: 4px solid #333;
  30.     }
  31.     #logo a {
  32.         display: block;
  33.         text-decoration: none;
  34.         text-indent: -100em;
  35.         height: 60px;
  36.     }
  37.     p {
  38.         line-height: 140%;
  39.     }
  40.     </style>
  41. </head><body> 
  42. <h1 id="logo"><a href="http://wordpress.org">WordPress</a></h1> 
  43. <?php
  44. switch($step) {
  45.  
  46.     case 0:
  47. ?> 
  48. <p>This file upgrades you from any previous version of WordPress to the latest. It may take a while though, so be patient. </p> 
  49. <p>If you’re all ready, <a href="upgrade.php?step=1">let's go</a>! </p> 
  50. <?php
  51.     break;
  52.     
  53.     case 1:
  54.     upgrade_all();
  55. ?> 
  56. <h2>Step 1</h2> 
  57. <p>There's actually only one step. So if you see this, you're done. <a href="../">Have fun</a>! </p>
  58.  
  59. <!--
  60. <pre>
  61. <?php echo $wpdb->num_queries; ?> queries
  62.  
  63. <?php timer_stop(1); ?> seconds
  64. </pre>
  65. -->
  66.  
  67. <?php
  68.     break;
  69. }
  70. ?> 
  71. </body>
  72. </html>
  73.